﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="TradeLeadList.aspx.cs" Inherits="E_Shop.TradeLeadList" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">

        $(document).ready(function () {
            if ($("#detailsmail") != null) {
                $("#detailsmail").dialog({
                    autoOpen: false,
                    modal: true,
                    minHeight: 100,
                    height: 'auto',
                    width: 'auto',
                    draggable: true,
                    resizable: false,
                    open: function () {
                        $(this).parent().appendTo($("form:first"));
                    }
                });
            }
            if ($("#replyemail") != null) {
                $("#replyemail").dialog({
                    autoOpen: false,
                    modal: true,
                    minHeight: 100,
                    height: 'auto',
                    width: 'auto',
                    draggable: true,
                    resizable: false,
                    open: function () {
                        $(this).parent().appendTo($("form:first"));
                    }
                });
            }
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <div id="replyemail" style="display: none">
        <asp:UpdatePanel ID="Upreplyemail" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table style="border: 1px solid #0883cc">
                    <tr style="border-bottom: 1px  solid #0883cc; margin-top: 10px">
                        <td style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc">
                            <asp:Label ID="lbnguoigui" runat="server" Text="Recevier :" Font-Bold="true"></asp:Label>
                            <asp:Label ID="lbreceiver" runat="server" Text=""></asp:Label>
                        </td>
                        <td style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc">
                            <asp:Label ID="Label1" runat="server" Text="Datetime: " Font-Bold="true"></asp:Label>
                            <asp:Label ID="lbngaygui" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr style="margin-top: 10px">
                        <td colspan="2" style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc " >
                            <asp:Label ID="Label2" runat="server" Text="Subject : " Font-Bold="true" Width ="150px"></asp:Label>
                            <asp:TextBox ID="txtSubject" runat="server" Text="" Width="350px" ></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="margin-top: 10px">
                        <td colspan="2" style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc">
                            <asp:Label ID="Label3" runat="server" Text="Content Message :" Font-Bold="true"></asp:Label>
                    </tr>
                    <tr style="margin-top: 10px">
                        <td colspan="2" style="border-bottom-style: solid; border-bottom-width: thin; border-bottom-color: #0883cc">
                            <asp:TextBox ID="txtcontent" runat="server" TextMode="MultiLine" Width="500px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="margin-top: 10px">
                        <td colspan="2" style="text-align: center">
                            <asp:Button ID="btnsend" runat="server" Text="Send" OnClick="btnsend_Click" />
                        </td>
                    </tr>
                </table>
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div class="blue-left" style="width: 90.5%;">
        Selling Lead</div>
    <div class="blue-right">
        <a class="close-blue">
            <img src="Images/Shared/icon_close_blue.gif" alt="" /></a>
    </div>
    <asp:UpdatePanel ID="updtlist" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:DataList ID="DtlsSelling" runat="server" BorderStyle="None" 
                CaptionAlign="Top">
                <HeaderStyle BackColor="Fuchsia" />
                <ItemTemplate>
                    <div id="ContendSearch">
                        <div class="imageShopingSearch">
                            <a href="SiteProductDetail.aspx?&id=<%# Eval("ID") %>&type=1">
                                <img src='Images/Product/<%# Eval("HINHANH") %>' width="100px" height="100px" alt="no image" />
                            </a>
                        </div>
                        <div class="decriptionShopingSearch">
                            <a href="SiteProductDetail.aspx?&id=<%# Eval("ID") %>">
                                <%# Eval("SUBJECT") %></a>
                            <div>
                                we make canned food with selected the best quality abalone. You can enjoy the best
                                abalone cuisine with organized system and thorough health control. It is processed
                                with only abalone body. you can ...GLORIA SEAFOOD
                            </div>
                        </div>
                        <div class="actionShopingSearch">
                            <asp:LinkButton CommandArgument='<%# Eval("ID") %>' ID="LinkBtnaddtocard_sell" runat="server"
                                OnClick="lbtn_addtocart_sell"><img src="Images/Shared/AddtoCart01.gif" 
                style="padding-right:3px" /></asp:LinkButton>
                            <br />
                             <asp:LinkButton ID="linkbtncontactnow_sell" CommandArgument='<%# Eval("ID") %>' runat="server"
                                OnClick="lbtn_contactnow_sell" OnClientClick="openDialogAndBlock('Send email', 600, 'replyemail')">
                                 <img src="Images/Shared/InquireNow.gif" style="padding-right:3px"  /></asp:LinkButton>
                            <%--<asp:LinkButton ID="linkbtncontactnow_sell" runat="server"  OnClientClick="openDialogAndBlock('Send email', 600, 'replyemail') OnClick="lbtn_contactnow_sell"><img src="Images/Shared/InquireNow.gif" 
                style="padding-right:3px" /></asp:LinkButton>--%>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:DataList>
            <cc1:CollectionPager ID="CollectionPager1" runat="server" QueryStringKey="Trang">
            </cc1:CollectionPager>
          
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="blue-left" style="width: 90.5%;">
        Buing Lead</div>
    <div class="blue-right">
        <a class="close-blue">
            <img src="Images/Shared/icon_close_blue.gif" alt="" /></a>
    </div>
   
    <asp:UpdatePanel ID="Upbuying" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:DataList ID="dtlbuying" runat="server" BorderStyle="None" 
                CaptionAlign="Top">
                <HeaderStyle BackColor="Fuchsia" />
                <ItemTemplate>
                    <div id="ContendSearch">
                        <div class="imageShopingSearch">
                            <a href="SiteProductDetail.aspx?&id=<%# Eval("ID") %>&type=2">
                                <img src='Images/Product/<%# Eval("HINHANH") %>' width="100px" height="100px" alt="no image" />
                            </a>
                        </div>
                        <div class="decriptionShopingSearch">
                            <a href="SiteProductDetail.aspx?&id=<%# Eval("ID") %>">
                                <%# Eval("SUBJECT") %></a>
                            <div>
                                we make canned food with selected the best quality abalone. You can enjoy the best
                                abalone cuisine with organized system and thorough health control. It is processed
                                with only abalone body. you can ...GLORIA SEAFOOD
                            </div>
                        </div>
                        <div class="actionShopingSearch">
                            <asp:LinkButton ID="LinkBtnaddtocard_buy" CommandArgument='<%# Eval("ID") %>' runat="server"
                                OnClick="lbtn_addtocart_buy">
                              <img src="Images/Shared/AddtoCart01.gif" style="padding-right:3px" /></asp:LinkButton>
                            <br />
                            <asp:LinkButton ID="linkbtncontactnow_buy" CommandArgument='<%# Eval("ID") %>' runat="server"
                                OnClick="lbtn_contactnow_buy" OnClientClick="openDialogAndBlock('Send email', 600, 'replyemail')">
                                 <img src="Images/Shared/InquireNow.gif" style="padding-right:3px"  /></asp:LinkButton>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:DataList>
            <cc1:CollectionPager ID="CollectionPager2" runat="server" QueryStringKey="Trang">
            </cc1:CollectionPager>
           
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
